home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / mint / setup / develop.sh < prev    next >
Text File  |  1994-02-17  |  2KB  |  62 lines

  1. # This script installs the source for MacMiNT and the extra tools needed
  2. # to build it.
  3. #
  4. # This script assumes that minimal.sh and normal.sh have been run
  5. # successfully.
  6. #
  7. # The following archives should be in your $SAVE directory:
  8. #
  9. # src.tar.gz
  10. # mac.tar.gz
  11. #
  12. # These files come with the MacMiNT distribution.  You might also be able to
  13. # get more recent versions from a MacMiNT archive.
  14. #
  15. # The other files needed for this installation need to be taken from the MPW
  16. # environment.  These files come with MPW C, they can be ordered separately
  17. # from APDA, and they are ftp-able from ftp.apple.com.  Be sure to read and
  18. # abide by the copyright restrictions on ftp.apple.com.  This script has only
  19. # been tested on the versions on ftp.apple.com.  Please let me know if it does
  20. # not work with other versions of the MPW files.
  21. #
  22. # dts/mac/tools/mpw/3.2.interfaces/cincludes-mpw3-2.hqx
  23. # dts/mac/tools/mpw/3.2.libraries/libraries.hqx
  24. #
  25. # The header files need to be in a sub-directory of your $SAVE directory called
  26. # 'mpw'.  The file 'Interfaces.o' needs to be in your $SAVE directory.
  27. #
  28.  
  29. # check for everything
  30. for i in src.tar.gz mac.tar.gz mpw/Types.h Interface.o; do
  31.     if [ ! -r $SAVE/$i ] ; then
  32.         echo "can't find $SAVE/$i"
  33.         exit 1
  34.     fi
  35. done
  36.  
  37. # make sure src and mac don't exist
  38. if [ -r src/jet ] ; then
  39.     echo "this script should only be run when there is nothing in the 'src' directory"
  40.     exit 1
  41. fi
  42. if [ -r mac/lib ] ; then
  43.     echo "this script should only be run when there is nothing in the 'mac' directory"
  44.     exit 1
  45. fi
  46.  
  47. # src
  48. echo src
  49. gzip -d < $SAVE/src.tar.gz | tar xf -
  50.  
  51. # mac
  52. echo mac
  53. gzip -d < $SAVE/mac.tar.gz | tar xf -
  54. (cd mac; perl perl/cvthdr 2)
  55. (cd mac; perl perl/cvthdr 4)
  56. (cd mac/s16; make)
  57. (cd mac/s; make)
  58. (cd mac; rm -r s s16)
  59. (cd mac/lib; oconv $SAVE/Interface.o interface.o; \
  60.     $MAR rs libmac.olb interface.o; \
  61.     $MAR rs libmac16.olb interface.o)
  62.